package com.tau.egonetwork.linkedin;

import com.tau.egonetwork.profiles.Group;
import com.tau.egonetwork.profiles.GroupsList;
import com.tau.egonetwork.profiles.MainProfile;
import com.tau.egonetwork.profiles.Profile;

public class LinkedinMainProfile extends MainProfile<String> {

	private static final long serialVersionUID = 270673832670993959L;

	public LinkedinMainProfile(String id, String name) {
		super(id, name);
	}
	
	@Override
	public String toString() {
		String s = super.toString();
		GroupsList<String> gl = getGroupsList();
		if (gl != null) {
			for (Group<String> g : gl) {
				s += "\n\t-- " + g.getGroupName();
				s += ": ";
				for (Profile<String> p : g) {
					s += p.getName() + ", ";
				}
			}
		}
		return s;
	}

}
